<template>
  <div>
    <el-form label-width="120px">
      <el-form-item label="公司名称">
        <el-input v-model="info.name" class="w500" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="info.companyAddress" class="w500" disabled />
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input v-model="info.mailbox" class="w500" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input
          v-model="info.remarks"
          type="textarea"
          :rows="3"
          class="w500"
          disabled
        />
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import { company } from '@/api/setting'
export default {
  data() {
    return {
      info: ''
    }
  },
  created() {
    // console.log('info')
    this.getData()
  },
  methods: {
    async getData() {
      const res = await company(this.$store.state.user.userInfo.companyId)
      this.info = res.data
      console.log(res)
    }
  }
}
</script>
<style lang="scss" scoped>
.w500 {
  width: 500px;
}
</style>
